home *** CD-ROM | disk | FTP | other *** search
- /*
- Sample ICI script for NetFinder.
-
- This script demonstrates how send a custom FTP command to all internal engines.
-
- What this script does:
- - Prompts the user for command(s) to send.
- - sends commands.
-
-
- NOTES:
- o Full ICI programming syntax can be obtained from
- <http://www.zeta.org.au/~atrn/ici/documentation.html>
-
- (c) Copyright 2000 Peter Li.
- */
-
-
-
- try {
- /* define a few variables */
- auto command;
-
- /* prompt the user for input. */
-
- if (MICI.Ask("Enter FTP Command." /*\rUse ╥,╙ between words. eg ╥umask,encrypt╙" */,
- "" /* inDefaultAnswer */,
- &command) == 0)
- {
- /* if user didnt cancel, continue. Else do nothing. */
-
- NFSendEngineFTPCommand(command);
- }
- } onerror {
- printf("'iciMICI.so' module is missing.\n");
- }
-
-